<template>
  <div class="search-suggestion">
    <!--搜索联想-->
    <van-list :finished="finished" finished-text="没有更多了">
      <van-cell v-for="(item, index) in suggestionListData" :key="index" :title="item" @click="cellClick(item)" />
    </van-list>
  </div>
</template>

<script>
export default {
  name: 'SearchSuggestion',
  data () {
    return {
      finished: true
    }
  },
  props: [
    'suggestionListData'
  ],
  methods: {
    // 点击联想建议搜索
    cellClick (val) {
      // console.log(val)
      this.$emit('cellClick', val)
    }
  }
}
</script>

<style lang="less" scoped>
.search-suggestion{
  padding: 0;
}
</style>
